home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 4674 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: walt.tsc.com!not-for-mail
  2. From: billr@elmer.tsc.com (Bill Roberts)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: x ^= y ^= x ^= y;
  5. Date: 2 Mar 1996 19:25:01 -0500
  6. Organization: Technology Service Corporation
  7. Sender: Bill Roberts
  8. Message-ID: <4haost$6kt@elmer.tsc.com>
  9. References: <4glcf7$eou@wn1.sci.kun.nl> <972.6628T1080T1212@cs.ruu.nl> <4h4ta6$ivf@elmer.tsc.com> <1547.6634T1001T2383@cs.ruu.nl>
  10. NNTP-Posting-Host: elmer.tsc.com
  11.  
  12. In article <1547.6634T1001T2383@cs.ruu.nl>,
  13. Wessel Dankers <wsldanke@cs.ruu.nl> wrote:
  14.      <snip most of the discussion that lead to this point.  Check
  15.       back in the thread if you want to see how we got here>
  16. >That's the first sensible thing I see. It doesn't help if one mumbles things
  17. >about "sequence points": although they are the right words they don't explain
  18. >anything.
  19. >
  20. Most language standards are written like the laws passed by Congress.
  21. Lots of words to hide what is trying to be said.  That is why people
  22. who argue about things like this are called "language lawyers."  For
  23. those who are interested, the semi-colon that ends a statement is a
  24. "sequence point."  That means that everything to the left has been
  25. completed.  The comma operator is the same thing, so we could also
  26. write the original problem as
  27.    x ^= y, y ^= x, x ^= y;
  28. and it is one statement.  
  29.  
  30.